/*
 * @Author: 18163104359 2205227953@qq.com
 * @Date: 2024-01-26 10:40:24
 * @LastEditors: 18163104359 2205227953@qq.com
 * @LastEditTime: 2024-02-02 16:52:11
 * @FilePath: /umi/src/api/prize.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

// 查询列表
export function GetListAPI(params: object) {
  return request({
    url: "/system/prize/list",
    method: "GET",
    params,
  });
}

// 详情
export function GetViewAPI(id: string) {
  return request({
    url: "/system/prize/getView/" + id,
    method: "GET",
  });
}

// 新增
export function AddDataAPI(data: object) {
  return request({
    url: "/system/prize",
    method: "POST",
    data,
  });
}

// 修改
export function EditDataAPI(data: object) {
  return request({
    url: "/system/prize",
    method: "PUT",
    data,
  });
}

// 删除
export function DelDataAPI(id: string) {
  return request({
    url: "/system/prize/" + id,
    method: "DELETE",
  });
}

//重置
export function resetAPI(data: object) {
  return request({
    url: "/system/prize/reset",
    method: "PUT",
    data,
  });
}

//ssss
export function ssssAPI(data: object) {
  return request({
    url: "/system/prize/ssss",
    method: "PUT",
    data,
  });
}
